package com.cloudkinto.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ding
 * @since 2022-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_bigcommerce_product")
public class OrderBigcommerceProductDo extends Model<OrderBigcommerceProductDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("order_id")
    private Long orderId;

    @TableField("item_id")
    private Long itemId;

    @TableField("product_id")
    private Long productId;

    @TableField("order_address_id")
    private Long orderAddressId;

    @TableField("name")
    private String name;

    @TableField("sku")
    private String sku;

    @TableField("upc")
    private String upc;

    @TableField("type")
    private String type;

    @TableField("base_price")
    private BigDecimal basePrice;

    @TableField("price_inc_tax")
    private BigDecimal priceIncTax;

    /**
     * total_inc_tax
     */
    @TableField("total_inc_tax")
    private BigDecimal totalIncTax;

    /**
     * weight
     */
    @TableField("weight")
    private Double weight;

    @TableField("quantity")
    private Integer quantity;

    @TableField("quantity_shipped")
    private Integer quantityShipped;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
